package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_music_room_furniture_up", desc = "妙音坊家具升级日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "music_childbuild")
public class LogMusicRoomFurnitureUp extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "家具唯一ID", dataAttribute = "music_childbuildid")
    private int furnitureId;
    @FieldTypeAnnotation(desc = "升级后等级", dataAttribute = "music_childbuildlv")
    private int level;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogMusicRoomFurnitureUp(long userId, int furnitureId, int level) {
        this.userId = userId;
        this.furnitureId = furnitureId;
        this.level = level;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
